package com.lxm.ymcc.feignclient;

import com.lxm.ymcc.domain.Login;
import com.lxm.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-uaa",fallback = LoginControllerFallBack.class)
public interface LoginServerFeign {
    @RequestMapping(value="/login/save",method= RequestMethod.POST)
    public JSONResult saveOrUpdate(@RequestBody Login login);
}
